
<template>
	<div class="app-container">
		<el-form>
			<el-form-item label="图片上传">
				<ImageUpload v-model="picUrls" />
			</el-form-item>
		</el-form>
	</div>
</template>
<!-- 文件上传组件示例 -->
<script setup lang="ts">
import { ref, defineAsyncComponent } from 'vue';
const ImageUpload = defineAsyncComponent(() => import('/src/components/upload/index.vue'));
const size = ref('');
// 这里放外链图片，防止被删
const picUrls = ref([
	'https://s2.loli.net/2023/05/24/yNsxFC8rLHMZQcK.jpg',
	'https://s2.loli.net/2023/05/24/RuHFMwW4rG5lIqs.jpg',
	'https://s2.loli.net/2023/05/24/ZPiGbcpR91WqInB.jpg',
	'https://s2.loli.net/2023/05/24/e1bcnEq3MFdmlNL.jpg',
	'https://s2.loli.net/2023/05/24/wZTSPj1yDQNcuhU.jpg',
]);
</script>